package com.zheng.umbrella.rpc.api;

import com.zheng.umbrella.dao.model.*;
import com.zheng.umbrella.dao.use.model.UmbrellaBatchUpdate;

import java.util.List;

/**
 * Created by Administrator on 2018/9/23.
 */
public interface UmbrellaHardwareApiService {

    /**
     * 获取伞机
     * @param example
     * @return
     */
    List<UmbrellaHardwareBatch> selectBatchByExample(UmbrellaHardwareBatchExample example);

    /**
     * 获取批次
     * @param example
     * @return
     */
    List<UmbrellaHardwareMachine> selectMachineByExample(UmbrellaHardwareMachineExample example);

    /**
     * 获取租金规则
     * @param example
     * @return
     */
    List<UmbrellaRuleRent> selectRuleRentByExample(UmbrellaRuleRentExample example);


    /**
     * 批量导入雨伞
     * @param list
     * @return
     */
    int insertBatch(List<UmbrellaHardwareUmbrella> list);

    /**
     * 批量更新雨伞id
     * @param list
     * @return
     */
    int updateBatch(List<UmbrellaBatchUpdate> list);

}
